package top.zymall.auth.sso.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.zy.common.zymallcommon.utils.resp.ApiResponse;
import top.zy.common.zymallcommon.utils.resp.ResponseUtil;
import top.zymall.auth.dto.SmsCodeParam;
import top.zymall.auth.dto.UpLoginParam;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 10:03 2019/7/23
 */
@RestController
@RequestMapping("sso")
public class SsoController {


    /**
     * 账号密码登录
     * @param upLoginParam
     * @return
     */
    @PostMapping("uplogin")
    public ApiResponse usernamePasswordLogin(UpLoginParam upLoginParam){
        return ResponseUtil.ok();
    }

    /***
     * 短信验证码登录
     * @param smsCodeParam
     * @return
     */
    @PostMapping("sclogin")
    public ApiResponse smsCodeLogin(SmsCodeParam smsCodeParam){
        return ResponseUtil.ok();
    }
}
